/*
 * @Author: tangyao
 * @Date: 2020-07-27 11:55:45
 * @LastEditTime: 2021-01-22 16:28:08
 * @LastEditors: luoqiang
 */
import request from '@/utils/request'

/**
 * 全区概况
 */
export function getGeneralSituation () {
  return request({
    url: '/v3/governanceElements/getGeneralSituation',
    method: 'get'
  })
}

/**
 * 事件概览
 */
export function getEventPreview (params) {
  return request({
    url: '/v3/governanceElements/getEventPreview',
    method: 'get',
    params: params
  })
}

/**
 * 事件列表
 */
export function getEventList () {
  return request({
    url: '/v3/governanceElements/getEventList',
    method: 'get'
  })
}


/**
 * 应急场所落点
 */
export function getAidPlace () {
  return request({
    url: '/v3/governanceElements/getAidPlace',
    method: 'get'
  })
}

/**
 * 重点场所 人员
 */
export function getKeyPlacesAndPersonnel (params) {
  return request({
    url: '/v3/governanceElements/getKeyPlacesAndPersonnel',
    method: 'get',
    params
  })
}

/**
 * 重点场所
 */
export function getTblKeyPlace () {
  return request({
    url: '/v3/governanceElements/getTblKeyPlace',
    method: 'get'
  })
}

/**
 * 应急物资
 */
export function getTblAid () {
  return request({
    url: '/v3/governanceElements/getTblAid',
    method: 'get'
  })
}



/**
 * 避灾安置落点
 */
export function getTblRefuge () {
  return request({
    url: '/v3/governanceElements/getTblRefuge',
    method: 'get'
  })
}

/**
 * 避灾安置落点详情
 */
export function getTblRefugeDetail (params) {
  return request({
    url: '/v3/governanceElements/getTblRefugeDetail',
    method: 'get',
    params
  })
}
/**
 * 避灾安置落点
 */
export function getGeologicalDisaster () {
  return request({
    url: '/v3/governanceElements/getGeologicalDisaster',
    method: 'get'
  })
}

// 测试站基本信息
export function gettStbprpB (params) {
  return request({
    url: '/v3/governanceElements/gettStbprpB',
    method: 'get',
    params
  })
}
// 测站基本信息周边搜索
export function getStbprpBNearList (params) {
  return request({
    url: '/v3/governanceElements/getStbprpBNearList',
    method: 'get',
    params
  })
}

// 水位雨量详情
export function getStbprpBDetail (params) {
  return request({
    url: '/v3/governanceElements/getStbprpBDetail',
    method: 'get',
    params
  })
}

// 網格事件
export function getTblEventPingan (params) {
  return request({
    url: '/v3/governanceElements/getTblEventPingan',
    method: 'get',
    params
  })
}

// 網格员
export function getGridList (params) {
  return request({
    url: '/grid/gridList?offset=1&limit=741&userName=&isLine=online&orgCode=1.1.5.6.',
    method: 'get',
    params
  })
}

// 网格详情
export function getGridDetail (params) {
  return request({
    url: '/grid/infoList',
    method: 'get',
    params
  })
}

// 事件类型来源
export function getEventType () {
  return request({
    url: '/v3/governanceElements/getType',
    method: 'get',
  })
}

export function getEventPageList (params) {
  return request({
    url: '/v3/governanceElements/getEventPageList',
    method: 'get',
    params
  })
}

export function getThingByType (params) {
  return request({
    url: '/v3/governanceElements/getThingByType',
    method: 'get',
    params
  })
}

// 事件分项列表List
export function getEventUnionList (params) {
  return request({
    url: '/v3/governanceElements/getEventUnionList',
    method: 'get',
    params
  })
}
// 处理流程
export function processAndViditors (eventId) {
  return request({
    url: `eventFlow/maodiao/processAndViditors/${eventId}`,
    method: 'get'
  })
}

// 队伍驻地-地图落点
export function tblTeamStationList () {
  return request({
    url: `/tblTeamStation/list`,
    method: 'get'
  })
}

// 队伍驻地-通过id查询
export function tblTeamStationqQueryById (params) {
  return request({
    url: `/tblTeamStation/queryById`,
    method: 'get',
    params
  })
}

// 队伍驻地-地图落点
export function tblFireBucket () {
  return request({
    url: `/tblFireBucket/list`,
    method: 'get'
  })
}

// 队伍驻地-通过id查询
export function tblFireBucketQueryById (params) {
  return request({
    url: `/tblFireBucket/queryById`,
    method: 'get',
    params
  })
}

export function voiceCall (params) {
  return request({
    url: `/videoFusion/voiceCall`,
    method: 'get',
    params
  })
}
// 创建视频会议
export function createVideoConference (params) {
  return request({
    url: `/videoFusion/createVideoConference`,
    method: 'get',
    params
  })
}
// 创建视频会议
export function deleteConference (params) {
  return request({
    url: `/videoFusion/deleteConference`,
    method: 'delete',
    params
  })
}

// 一键解除禁言
export function unForbiddenSpeech (params) {
  return request({
    url: `/videoFusion/unForbiddenSpeech`,
    method: 'delete',
    params
  })
}

// 一键禁言
export function forbiddenSpeech (params) {
  return request({
    url: `/videoFusion/forbiddenSpeech`,
    method: 'delete',
    params
  })
}

// 语音电话挂断
export function voiceCallHangUp (params) {
  return request({
    url: `/videoFusion/voiceCallHangUp`,
    method: 'delete',
    params
  })
}